home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
T-TPUG Old Monthly Disks
/
(c)tj.d64
/
quiz.c
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
14KB
|
340 lines
20 CR$=CHR$(13):E$="EOF":HC=0:EN=0:EM$=CHR$(0):ET=0:ES=0:S=0
30 POKE53280,1:POKE53281,1:PRINT"[147]"TAB(4);
40 FORJ=1TO30:PRINT" ";:NEXTJ
50 FORL=1TO8:PRINTTAB(4)" "TAB(35)" ":NEXTL
60 PRINTTAB(4);:FORJ=1TO32:PRINT" ";:NEXTJ
70 PRINT"[145][145][145][145][145][146]"SPC(12)" *** COMPUTER QUIZ *** "
80 N=2000:GOSUB540
90 INPUT"[147]WHAT IS YOUR NAME PLEASE";N$
100 TN$=N$
110 PRINT"STATUS:[146]"
120 INPUT"T[146]EACHER OR S[146]TUDENT";TS$
130 IFLEFT$(TS$,1)="T"ORLEFT$(TS$,1)="S"THEN150
140 GOTO120
150 PRINT"CORRECT:[146]"
160 INPUT"Y[146]ES OR N[146]O";AN$
170 IFLEFT$(AN$,1)="N"THEN90
180 IFLEFT$(AN$,1)="Y"ANDLEFT$(TS$,1)="T"THEN210
190 GOTO300
200 REM *** TEACHER OPTIONS
210 N$=TN$:PRINT"[147] *** TEACHER OPTIONS *** [146]"
220 PRINT" 1. PRINT QUIZ ON PRINTER"
230 PRINT" 2. CHECK INDIVIDUAL STUDENT RECORD"
240 PRINT" 3. WORK THROUGH QUIZ AS STUDENT"
250 PRINT" 4. QUIT PROGRAM"
260 PRINT" CHOOSE ONE OF THE ABOVE OPTIONS[146]"
270 GOSUB400:A=VAL(A$):IFA<1ORA>4THEN270
280 ONAGOTO3340,2790,300,2770
290 REM *** PURPOSE
300 PRINT"[147] *** COMPUTER QUIZ *** [146]"
310 PRINT"THIS QUIZ IS DESIGNED TO TEST YOUR":PRINT"KNOWLEDGE OF THE ";
320 PRINT"GENERAL CARE AND USE OF DISKETTES, AND HOW TO RUN[146] A COMPUTER";
330 PRINT" PROGRAM FROM A PREPARED DISKETTE ON THE COMMODORE[146] SYSTEM.":GOSUB540
340 PRINT"SEE YOUR TEACHER OR INSTRUCTOR BEFORE":PRINT"ATTEMPTING TO SAVE[146] ";
350 PRINT"OR PRINT[146] YOUR OWN PROGRAMS.":GOSUB540
360 PRINT" PRESS ANY KEY TO BEGIN THE QUIZ "
370 PRINT" ANSWER TRUE OR FALSE[146] WITH Q[146] TO QUIT[146]"
380 GOSUB400
390 GOTO560
400 GETA$:IFA$<>""THEN400
410 GETA$:IFA$=""THEN410
420 RETURN
430 PRINT"T[146]RUE OR F[146]ALSE";:INPUTTF$
440 IFLEFT$(TF$,1)="T"THENTA=1:RETURN
450 IFLEFT$(TF$,1)="F"THENRETURN
460 IFLEFT$(TF$,1)="Q"THENNQ=NQ-1:GOTO2560
470 PRINT"[145][145][145]":GOTO430
480 PRINT"Y[146]ES OR N[146]O?":RETURN
490 PRINT"PRESS ANY KEY TO CONTINUE"
500 GOSUB400
510 RETURN
520 CA=CA+1:TA=0:RETURN
530 NQ=NQ+1:PRINT"[147]QUESTION # [146]";NQ;"":RETURN
540 FORT=1TON:NEXTT:RETURN
550 REM *** QUIZ
560 N=1000:NQ=0:CA=0:GOSUB530:PRINT"THE POWER MUST BE TURNED OFF[146] BEFORE"
570 PRINT"CONNECTING OR DISCONNECTING ANYTHING TO OR FROM ";
580 PRINT"THE COMPUTER.":GOSUB430
590 IFTA=1THENPRINT"RIGHT ON! ";N$:GOSUB520:GOTO610
600 PRINT"OUCH!! SORRY, THIS IS INCORRECT."
610 GOSUB540:PRINT"NEVER[146] CONNECT OR DISCONNECT ANYTHING TO OR FROM THE";
620 PRINT" COMPUTER WHILE IT IS TURNED ON[146], NOT EVEN A JOYSTICK!"
630 GOSUB540:PRINT"IT IS A GOOD IDEA TO UNPLUG THE COMPUTERBEFORE CONNECTING ";
640 PRINT"OR DISCONNECTING ANY- THING TO OR FROM IT."
650 GOSUB540:GOSUB490
660 GOSUB530:PRINT"BENDING A DISKETTE MAY DAMAGE IT.":GOSUB430
670 IFTA=1THENPRINT"YOU'VE GOT IT! ";N$:GOSUB520:GOTO690
680 PRINT"SORRY! ";N$
690 GOSUB540:PRINT"ALWAYS AVOID BENDING A DISKETTE AS MUCH AS POSSIBLE, AS ";
700 PRINT"THIS COULD DAMAGE IT."
710 GOSUB540:GOSUB490
720 GOSUB530:PRINT"THE DISKETTE MAY BE REMOVED FROM ITS"
730 PRINT"PLASTIC COVER TO CLEAN IT.":GOSUB430
740 IFTA=1THENPRINT"NO - THIS IS FALSE.":TA=0:GOTO760
750 PRINT"YOU'RE RIGHT AGAIN!":GOSUB520
760 GOSUB540:PRINT"IT WOULD TOTALLY RUIN THE DISKETTE TO"
770 PRINT"REMOVE IT FROM ITS PLASTIC COVER."
780 GOSUB540:GOSUB490
790 GOSUB530:PRINT"NEVER TOUCH THE ACTUAL SURFACE OF THE DISKETTE ITSELF";
800 PRINT" THROUGH THE OVAL CUTOUT OF THE PLASTIC COVER.":GOSUB430
810 IFTA=1THENPRINT"TRUE! TRUE!":GOSUB520:GOTO830
820 PRINT"SORRY - THAT IS INCORRECT."
830 GOSUB540:PRINT"EVEN AN INVISIBLE FINGERPRINT CAN CAUSE":PRINT"PROGRAM ";
840 PRINT"ERRORS.":GOSUB540:GOSUB490
850 GOSUB530:PRINT"WHEN A DISKETTE IS NOT IN USE, IT SHOULDBE STORED INSIDE ";
860 PRINT"THE DISK DRIVE.":GOSUB430
870 IFTA=1THENPRINT"SORRY - THAT IS NOT A GOOD PRACTICE.":TA=0:GOTO890
880 PRINT"YOU'RE TOO SHARP!":GOSUB520
890 GOSUB540
900 PRINT"THE BEST IDEA IS TO REMOVE THE DISKETTE FROM THE DISK DRIVE AND TO";
910 PRINT" STORE IT VERTICALLY IN A PROPER CONTAINER WHEN NOT IN USE."
920 GOSUB540:GOSUB490
930 GOSUB530:PRINT"IT IS BEST TO STORE DISKETTES VERTICALLYWHEN NOT IN USE."
940 GOSUB430
950 IFTA=1THENPRINT"YOU'VE BEEN PAYING ATTENTION!":GOSUB520:GOTO970
960 PRINT"SORRY - THIS IS IN FACT TRUE."
970 GOSUB540
980 PRINT"THE MAGNETIC PROPERTIES OF DISKETTES AREBEST PRESERVED WHEN STORED";
990 PRINT" VERTICALLY."
1000 GOSUB540:GOSUB490
1010 GOSUB530:PRINT"AN INVISIBLE SCRATCH ON THE SURFACE OF THE DISKETTE ITSELF";
1020 PRINT" CAN CAUSE A PROGRAM ON THE DISKETTE NOT TO WORK PROPERLY.":GOSUB430
1030 IFTA=1THENPRINT"YES! YES! YES!":GOSUB520:GOTO1050
1040 PRINT"OH, BUT IT CAN CAUSE PROGRAM ERRORS!"
1050 GOSUB540:PRINT"TAKE CARE NEVER[146] TO ALLOW THE ACTUAL SURFACE OF THE ";
1060 PRINT"DISKETTE ITSELF TO BE TOUCHED IN ANY WAY."
1070 GOSUB540:GOSUB490
1080 GOSUB530:PRINT"DUST IS NOT A PROBLEM TO A DISKETTE, AS DUST CAN EASILY BE ";
1090 PRINT"BLOWN OFF A DISKETTE.":GOSUB430
1100 IFTA=1THENPRINT"OH, BUT DUST IS A PROBLEM!":TA=0:GOTO1120
1110 PRINT"YOU'RE A SHARP COOKIE!!":GOSUB520
1120 GOSUB540: PRINT"ALWAYS AVOID DUST AS MUCH AS POSSIBLE."
1130 GOSUB540:PRINT"IN THE CLASSROOM, IT IS BEST TO KEEP THECOMPUTERS AWAY ";
1140 PRINT"FROM THE CHALKBOARDS TO AVOID CHALK DUST. ALSO, KEEP YOUR ";
1150 PRINT" COMPUTERS COVERED WITH PROPER COVERS WHEN NOT IN USE."
1160 GOSUB540:GOSUB490
1170 GOSUB530:PRINT"THE PAPER POCKETS THAT THE DISKETTES COME IN ARE ";
1180 PRINT"SPECIALLY TREATED TO MINI- MIZE STATIC BUILD-UP.":GOSUB430
1190 IFTA=1THENPRINT"YOU'VE BEEN STUDYING THIS STUFF!!":GOSUB520:GOTO1210
1200 PRINT"SORRY - THEY ACTUALLY ARE !";N$
1210 GOSUB540:PRINT"AT LEAST THIS IS TRUE OF ALL PAPER POCKETS FROM ";
1220 PRINT"COMMODORE[146] AND OTHER REPUT- ABLE SOFTWARE FIRMS."
1230 GOSUB540:PRINT"FOR THIS REASON, AND FOR PROTECTION, DISKETTES SHOULD ";
1240 PRINT"ALWAYS BE RETURNED TO THEIR PAPER POCKETS FOR STORAGE."
1250 GOSUB540:GOSUB490
1260 GOSUB530:PRINT"IT IS A GOOD IDEA TO HOLD YOUR THUMB OVER THE LABEL WHEN ";
1270 PRINT"INSERTING A DISKETTEINTO THE DISK DRIVE, TO REMIND YOU TO INSERT ";
1280 PRINT"IT PROPERLY.":GOSUB430
1290 IFTA=1THENPRINT"YOU'RE RIGHT! ";N$:GOSUB520:GOTO1310
1300 PRINT"OH, BUT IT IS! ";N$
1310 GOSUB540:PRINT"THIS IS AN EXCELLENT IDEA!! WE SHOULD ALL LEARN TO MAKE";
1320 PRINT" THIS A HABIT!"
1330 GOSUB540:GOSUB490
1340 GOSUB530:PRINT"IT IS A GOOD IDEA TO LAY A DISKETTE ON TOP OF THE DISK ";
1350 PRINT"DRIVE SO IT WILL BE HANDY WHEN YOU NEED IT.":GOSUB430
1360 IFTA=1THENPRINT"NO - THIS IS NOT A GOOD IDEA.":TA=0:GOTO1380
1370 PRINT"CORRECT - IT IS NOT A GOOD IDEA!":GOSUB520
1380 GOSUB540:PRINT"THIS IS A COMMON BUT BAD PRACTICE. THE DISK DRIVE HAS ";
1390 PRINT"AN ELECTRIC MOTOR, AND ANY OPERATING MOTOR CAN BE HARMFUL ";
1400 PRINT"TO A DISKETTE."
1410 GOSUB540:PRINT"NOTE:[146] TRY TO CATCH YOUR TEACHER OR COMPUTER ";
1420 PRINT"INSTRUCTOR FOLLOWING THIS BAD HABIT!":GOSUB540:GOSUB490
1430 GOSUB530:PRINT"WITH THE COMMODORE 64[146] COMPUTER, BOTH THECOMPUTER AND THE ";
1440 PRINT"DISK DRIVE SHOULD BE TURNED ON[146] BEFORE INSERTING THE DISKETTE ";
1450 PRINT"INTO THE DRIVE FOR LOAD[146]ING.":GOSUB430
1460 IFTA=1THENPRINT"CORRECT-AMUNDO!!":GOSUB520:GOTO1480
1470 PRINT"SORRY - THIS IS TRUE! ";N$
1480 GOSUB540:PRINT"SHOULD YOU INSERT THE DISKETTE INTO THE DRIVE WITH EITHER ";
1490 PRINT"THE COMPUTER OR THE DRIVE TURNED OFF[146], DATA MAY BE ERASED "
1500 PRINT"FROM THE DISKETTE WHEN YOU POWER UP.":GOSUB540:PRINT"NOTE:[146] THIS ";
1510 PRINT"IS DIFFERENT IN SOME OTHER SYSTEMS. CHECK THE APPROPRIATE ";
1520 PRINT"MANUALS.":GOSUB540:GOSUB490
1530 GOSUB530:PRINT"TO LOAD[146] A PROGRAM FROM A DISKETTE, YOU PROPERLY INSERT ";
1540 PRINT"THE DISKETTE, CLOSE THE DOOR OF THE DRIVE, TYPE LOAD[146] ";CHR$(34);
1550 PRINT"PROGRAM NAME";CHR$(34);",8 AND HIT RETURN[146].":GOSUB430
1560 IFTA=1THENPRINT"YOU GOT IT, PONTIAC!":GOSUB520:GOTO1580
1570 PRINT"OH, THIS WORKS FOR ME, ";N$
1580 GOSUB540:PRINT"REMEMBER TO POWER UP YOUR COMPUTER AND DRIVE BEFORE ";
1590 PRINT"LOAD[146]ING.":GOSUB540:PRINT"ALSO, REMEMBER THAT SOME PROGRAMS HAVE "
1600 PRINT"SPECIAL LOAD[146] INSTRUCTIONS."
1610 GOSUB540:GOSUB490
1620 GOSUB530:PRINT"ONCE A PROGRAM HAS BEEN PROPERLY LOAD[146]ED,AND THE ";
1630 PRINT"PROMPT READY[146] APPEARS ON THE SCREEN, YOU SHOULD TYPE RUN[146] AND";
1640 PRINT" PRESS RETURN[146] TO START THE PROGRAM.":GOSUB430
1650 IFTA=1THENPRINT"WELL DONE! ";N$:GOSUB520:GOTO1670
1660 PRINT"TRY IT - IT WORKS FOR ME!"
1670 GOSUB540:PRINT"SHOULD YOU STOP A PROGRAM USING THE RUN/STOP[146] KEY, OR";
1680 PRINT" RESET THE COMPUTER BY PRESSING THE RUN/STOP[146] AND RESTORE[146] KEYS ";
1690 PRINT" SIMULTANEOUSLY, YOU CAN RESTART YOUR PROGRAM BY TYPING RUN[146] ";
1700 PRINT"AND PRESSING":PRINT"RETURN[146].":GOSUB540:GOSUB490
1710 GOSUB530:PRINT"A DISKETTE IS LIKE A RECORD WITH A":PRINT"COVER; THERE IS NO";
1720 PRINT" PART WHICH MUST ENTERTHE DRIVE FIRST.":GOSUB430
1730 IFTA=1THENPRINT"THIS IS INCORRECT!":TA=0:GOTO1750
1740 PRINT"CHALK ANOTHER ONE UP FOR THE KID!!":GOSUB520
1750 GOSUB540
1760 PRINT"THE CUTOUT PART OF THE DISKETTE MUST[146] ENTER THE DRIVE FIRST!!"
1770 GOSUB540:GOSUB490
1780 GOSUB530:PRINT"A DISKETTE MUST BE PUSHED INTO THE DRIVEGENTLY OR ELSE IT ";
1790 PRINT"MIGHT BE DAMAGED.":GOSUB430
1800 IFTA=1THENPRINT"WAY TO GO! ";N$:GOSUB520:GOTO1820
1810 PRINT"SORRY - DISKETTES ARE RATHER FRAGILE!"
1820 GOSUB540:PRINT"BE GENTLE WITH DISKETTES. THEY WILL TAKESOME ABUSE; ";
1830 PRINT"HOWEVER, NEVER[146] JAM A":PRINT"DISKETTE INTO THE DRIVE!"
1840 GOSUB540:GOSUB490
1850 GOSUB530:PRINT"NEVER[146] REMOVE A DISKETTE WHILE THE DISK DRIVE'S IN USE[146] ";
1860 PRINT"LIGHT IS ON, AS THIS WILLDESTROY THE DATA ON THE DISKETTE, AND"
1870 PRINT"MAY PERMANENTLY DAMAGE IT.":GOSUB430
1880 IFTA=1THENPRINT"ABSOLUTELY CORRECT!! ";N$:GOSUB520:GOTO1900
1890 PRINT"ANOTHER OUCH!! SORRY - YOU'RE WRONG."
1900 GOSUB540:PRINT"DEFINITELY ONE TO PAY ATTENTION TO!"
1910 GOSUB540:PRINT"NEVER[146] TRY TO REMOVE A ";
1920 PRINT"DISKETTE FROM THE DRIVE WHILE THE IN USE[146] LIGHT IS ON!"
1930 GOSUB540:GOSUB490
1940 GOSUB530:PRINT"THE EDGE OF THE DISKETTE WITH THE OVAL CUTOUT IN THE SQUARE";
1950 PRINT" PLASTIC COVER MUST ENTER THE DRIVE FIRST.":GOSUB430
1960 IFTA=1THENPRINT"AN EASY ONE FOR YOU!":GOSUB520:GOTO1980
1970 PRINT"YES, IT MUST, OR IT WON'T WORK."
1980 GOSUB540:PRINT"YOU HAD THIS ONE BEFORE."
1990 GOSUB540:PRINT"JUST CHECKING TO SEE IF YOU'VE BEEN PAYING ATTENTION."
2000 GOSUB540:GOSUB490
2010 GOSUB530:PRINT"HEAT AND COLD WON'T BOTHER A DISKETTE, UNLESS YOU GET THE ";
2020 PRINT"PLASTIC SO HOT IT MELTS.":GOSUB430
2030 IFTA=1THENPRINT"SORRY - THAT IS INCORRECT.":TA=0:GOTO2050
2040 PRINT"MY, YOU ARE A CLEVER ONE!":GOSUB520
2050 GOSUB540:PRINT"A DISKETTE IS SENSITIVE TO EXTREMES OF HEAT AND COLD."
2060 GOSUB540:PRINT"ALLOW A DISKETTE BROUGHT IN FROM"
2070 PRINT"OUTDOORS TO WARM TO ROOM TEMPERATURES IFYOU EXPERIENCE PROBLEMS ";
2080 PRINT"WITH IT.":GOSUB540:GOSUB490
2090 GOSUB530:PRINT"A DISKETTE SHOULD NEVER[146] BE STORED NEAR AMAGNET, AN ";
2100 PRINT"ELECTRIC MOTOR, OR EVEN A TELEVISION SET.":GOSUB430
2110 IFTA=1THENPRINT"SUPER! ";N$:GOSUB520:GOTO2130
2120 PRINT"GOTCHA! THIS IS TRUE! ";N$
2130 GOSUB540:PRINT"DISKETTES ARE A MAGNETIC MEDIUM, AND AREAFFECTED BY ";
2140 PRINT"ANYTHING WHICH CREATES A MAGNETIC FIELD."
2150 GOSUB540:GOSUB490
2160 GOSUB530:PRINT"THE DOOR OF THE DISK DRIVE MUST BE":PRINT"CLOSED[146] IN ORDER";
2170 PRINT" FOR THE DRIVE TO":PRINT"OPERATE.":GOSUB430
2180 IFTA=1THENPRINT"RIGHT YOU ARE! ";N$:GOSUB520:GOTO2200
2190 PRINT"SORRY - YOU ARE WRONG, ";N$
2200 GOSUB540:PRINT"KEEP THE DOOR CLOSED AT ALL TIMES WHEN THE DRIVE IS IN USE."
2210 GOSUB540:GOSUB490
2220 GOSUB530:PRINT"TO LABEL YOUR DISKETTE, A FELT PEN "
2230 PRINT"SHOULD BE USED. THE BEST IDEA IS TO WRITE ON THE LABEL FIRST, ";
2240 PRINT"THEN ATTACH ITTO THE DISKETTE.":GOSUB430
2250 IFTA=1THENPRINT"ANOTHER QUESTION BITES THE DUST!!":GOSUB520:GOTO2270
2260 PRINT"SORRY - THAT'S THE BEST IDEA I HAVE!"
2270 GOSUB540:PRINT"A DISKETTE IS VERY SENSITIVE. WRITING ONTHE LABEL WHEN ";
2280 PRINT"ATTACHED, ESPECIALLY WITHA PEN OR PENCIL, MIGHT DAMAGE THE"
2290 PRINT"DISKETTE.":GOSUB540:GOSUB490
2300 GOSUB530:PRINT"A CHARGE OF STATIC ELECTRICITY CAN":PRINT"DAMAGE THE ";
2310 PRINT"INFORMATION ON A DISKETTE.":GOSUB430
2320 IFTA=1THENPRINT"SHOCKING! BUT TRUE!":GOSUB520:GOTO2340
2330 PRINT"UNFORTUNATELY, IT CAN AND WILL!"
2340 GOSUB540:PRINT"AVOID BUILD-UP OF STATIC ELECTRICITY WHENEVER POSSIBLE."
2350 GOSUB540:PRINT"BE PARTICULARLY CAREFUL IN CLASSROOMS WITH CARPETED ";
2360 PRINT"FLOORS. IT IS BEST TO LAY A FLOOR COVERING OVER CARPET IN THE "
2370 PRINT"CLASSROOM IN THE COMPUTER AREA.":GOSUB540:GOSUB490
2380 GOSUB530:PRINT"THINK OF THE DOOR FOR THE DISK DRIVE LIKE THE DOOR TO ";
2390 PRINT"YOUR HOME - KEEP IT CLOSED WHETHER THE DRIVE CONTAINS A "
2400 PRINT"DISKETTE OR NOT.":GOSUB430
2410 IFTA=1THENPRINT"YOU KNOW ALL THE ANSWERS!":GOSUB520:GOTO2430
2420 PRINT"OH - THIS IS A GOOD HABIT TO LEARN."
2430 GOSUB540:PRINT"KEEPING THE DRIVE DOOR CLOSED HELPS KEEPDUST, FINGERS, ";
2440 PRINT"TOYS, AND SO ON OUT OF THE DRIVE. IT IS A GOOD IDEA TO KEEP IT ";
2450 PRINT"CLOSED WHENEVER POSSIBLE.":GOSUB540:GOSUB490
2460 GOSUB530:PRINT"SHOULD YOU WISH TO SAVE[146] YOUR WRITTEN WORK YOU DID WITH ";
2470 PRINT"A WORD PROCESSING PROGRAM SUCH AS BANK STREET WRITER[146], YOU"
2480 PRINT"SHOULD REMOVE THE PROGRAM DISKETTE, AND INSERT YOUR OWN PROPERLY ";
2490 PRINT"FORMATTED DISKETTE BEFORE SAVING.":GOSUB430
2500 IFTA=1THENPRINT"THIS IS TRUE, ";N$:GOSUB520:GOTO2520
2510 PRINT"SORRY - IT'S THE BEST IDEA!"
2520 GOSUB540:PRINT"A GOOD IDEA IS TO PLACE A WRITE-PROTECT TAB ON YOUR ";
2530 PRINT"MASTER DISKETTE AND TO SAVE[146] ONLY TO A FILE DISKETTE."
2540 GOSUB540:GOSUB490
2550 REM *** QUIZ RESULTS
2560 PRINT"[147] *** QUIZ RESULTS *** "
2570 PRINT"YOU GOT ";CA;" RIGHT OUT OF ";NQ
2580 IFNQ=0THENFORT=1TO1000:NEXTT:GOTO2770
2590 FA=INT((CA/NQ)*100)
2600 PRINT"YOU SCORED ";FA;" %"
2610 IFFA=100THENPRINT"EXCELLENT WORK! ";N$
2620 IFFA>89ANDFA<100THENPRINT"VERY GOOD! ";N$
2630 IFFA=>75ANDFA<89THENPRINT"GOOD! ";N$
2640 IFFA<75THENPRINT"PERHAPS YOU SHOULD TRY THE QUIZ AGAIN, ":PRINTN$
2650 PRINT" PRESS ANY KEY TO CONTINUE[146]"
2660 GOSUB400
2670 PRINT"[147] *** SAVE OPTION *** [146]"
2680 PRINT"SAVE THE RESULTS OF YOUR QUIZ?":GOSUB480:GOSUB400
2690 IFA$="Y"THEN3010
2700 IFA$<>"N"THEN2670
2710 PRINT"[147]DO YOU WISH TO RE-DO THE QUIZ?":GOSUB480:GOSUB400
2720 IFA$="Y"THENCA=0:NQ=0:GOTO560
2730 IFA$<>"N"THEN2710
2740 PRINT"WOULD ANYONE ELSE LIKE TO DO IT?":GOSUB480:GOSUB400
2750 IFA$="Y"THENN$="":N=2000:GOTO90
2760 IFA$<>"N"THEN2740
2770 PRINT"[147]COMPUTER QUIZ[146] TERMINATED.":END
2780 REM *** LOAD
2790 PRINT"[147]DO YOU WANT A CATALOG OF STUDENT FILES?":GOSUB480:GOSUB400
2800 IFA$="Y"THENGOSUB3070:PRINT"[147]":GOTO2820
2810 IFA$<>"N"THEN2790
2820 PRINT"ENTER NAME OF FILE TO BE LOADED.":INPUTN$
2830 OPEN15,8,15:OPEN5,8,5,"0:] "+N$+",S,R":GOSUB3280
2840 INPUT#5,N$,CA,NQ,FA:GOSUB3280
2850 INPUT#5,E$
2860 CLOSE5:CLOSE15:PRINT"[147]":GOTO2880
2870 IFHC=1THENOPEN4,4:CMD4
2880 PRINT:PRINT"COMPUTER QUIZ RESULTS:"
2890 PRINT:PRINT"NAME OF STUDENT: ";N$
2900 PRINT:PRINT"NUMBER OF QUESTIONS CORRECT: ";CA
2910 PRINT:PRINT"NUMBER OF QUESTIONS ATTEMPTED: ";NQ
2920 PRINT:PRINT"PERCENTAGE: ";FA;" %"
2930 IFHC=1THENHC=0:PRINT#4:CLOSE4:N=2000:GOTO210
2940 PRINT"PRINT A COPY OF THESE RESULTS?":GOSUB480:GOSUB400
2950 IFA$="Y"THEN2970
2960 IFA$<>"Y"THENN=2000:GOTO210
2970 PRINT" CHECK TO SEE THAT PRINTER IS READY[146]"
2980 PRINT" PRESS ANY KEY TO PRINT COPY[146]":GOSUB400
2990 HC=1:GOTO2870
3000 REM *** SAVE
3010 OPEN15,8,15:PRINT#15,"S0:] "+N$:GOSUB3280
3020 OPEN5,8,5,"0:] "+N$+",S,W":GOSUB3280
3030 PRINT#5,N$;CR$;CA;CR$;NQ;CR$;FA:GOSUB3280
3040 PRINT#5,E$:CLOSE5:CLOSE15
3050 PRINT"FILE SAVED":FORT=1TO750:NEXTT:GOTO2710
3060 REM *** DIRECTORY
3070 PRINT"[147]":OPEN15,8,15:OPEN1,8,0,"$0":GOSUB3280
3080 GET#1,A$,B$
3090 GET#1,A$,B$
3100 GET#1,A$,B$
3110 C=0:IFA$<>""THENC=ASC(A$)
3120 IFB$<>""THENC=C+ASC(B$)*256
3130 PRINTMID$(STR$(C),2);TAB(3);
3140 GET#1,B$:IFST<>0THEN3220
3150 IFB$<>CHR$(34)THEN3140
3160 GET#1,B$:IFB$<>CHR$(34)THENPRINTB$;:GOTO3160
3170 GET#1,B$:IFB$=CHR$(32)THEN3170
3180 PRINTTAB(20);:C$=""
3190 C$=C$+B$:GET#1,B$:IFB$<>""THEN3190
3200 PRINTLEFT$(C$,3)
3210 IFST=0THEN3090
3220 PRINT" BLOCKS FREE ":CLOSE1:CLOSE15
3230 PRINT"NOTE: COMPUTER QUIZ[146] FILES ARE MARKED"
3240 PRINT"WITH A ]. DO NOT[146] TYPE THIS AS PART OF":PRINT"THE FILE NAME."
3250 PRINT" PRESS ANY KEY TO CONTINUE[146]":GOSUB400
3260 RETURN
3270 REM *** DISK ERROR
3280 INPUT#15,EN,EM$,ET,ES:IF(EN<20)OR(EN=62)THENRETURN
3290 PRINT"DISK ERROR[146]"EN"[157], "EM$","ET"[157],"ES
3300 PRINT" PRESS ANY KEY TO CONTINUE[146]":GOSUB400
3310 CLOSE5:CLOSE15:N=2000:IFLEFT$(TS$,1)="S"THEN2560
3320 GOTO210
3330 REM *** LOAD PRQUIZ
3340 PRINT"[147]"
3350 PRINT"LOAD"CHR$(34)"0:PRQUIZ"CHR$(34)",8"
3360 PRINT"RUN":PRINT"[145][145][145][145][145][145][145][145][145]"
3370 POKE631,13:POKE632,13:POKE198,2:END
3380 REM"
3390 [143]"
64000 REM" *** COMPUTER QUIZ *** - ERIC MEISNER 1-902-678-7074